package edu.sctu.practice.class01.zhoumengxue.assign.assign03.assign03_2;

/**
 * Created by ASUS on 2015/10/22.
 */
public class Max {

    public static Comparable max(Comparable o1, Comparable o2) {

        if (o1.compareTo(o2) == 0) {
            System.out.println("面积1较大");
            return o1;
        } else {
            System.out.println("面积2较大");
            return o2;
        }

    }
}
